//
//  NSTimer+Extension.m
//  togetherLBS
//
//  Created by Phyllis Hu on 15/7/14.
//  Copyright (c) 2015年 celi. All rights reserved.
//

#import "NSTimer+Extension.h"

@implementation NSTimer (Extension)

-(void)pauseTimer{ //暂停
    
    if (![self isValid]) {
        return ;
    }
    [self setFireDate:[NSDate distantFuture]]; //如果给我一个期限，我希望是4001-01-01 00:00:00 +0000
}

-(void)resumeTimer{ //从新开始
    
    if (![self isValid]) {
        return ;
    }
    //[self setFireDate:[NSDate dateWithTimeIntervalSinceNow:0]];
    [self setFireDate:[NSDate date]];
}
@end
